package site.jlopen.components.entity;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class GrapGroup {

	private String title;

	private String name;

	private boolean collapsable = true;

	private GrapGroupOption layoutOptions = new GrapGroupOption();
	
	private List<GraphNode> nodes = new ArrayList<GraphNode>();

	public GrapGroup(String title, String name) {
		super();
		this.title = title;
		this.name = name;
		//this.collapsable = true;
		//this.layoutOptions = new GrapGroupOption();
		//this.nodes = new ArrayList<GraphNode>();
	}

	public GrapGroup addNode(GraphNode node) {
		this.nodes.add(node);
		return this;
	}
	
}
